package com.yxw.yxnet_cd_center.customer_service.dto;



import com.yxw.yxnet_cd_center.customer_service.entity.YxcscBaseChannelUserEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
//import lombok.EqualsAndHashCode;



@Data
//@EqualsAndHashCode(callSuper = true)
public class YxcscBaseChannelUserDTO   implements Serializable
{
    private static final long serialVersionUID = 81695381873374L;
    /**
    *主键id
    */
    @NotNull(message = "主键id不可为空")
    @ApiModelProperty(value = "主键id")
    private Integer id;
    /**
    *渠道编码
    */
    @NotBlank(message = "渠道编码不可为空")
    @ApiModelProperty(value = "渠道编码")
    private String channelCode;
    /**
    *人员ID
    */
    @ApiModelProperty(value = "人员ID")
    private Long userId;
    /**
    *将DTO转换为ENTITY
    */
    public YxcscBaseChannelUserEntity ConverToEntity()
    {
        YxcscBaseChannelUserEntity oYxcscBaseChannelUserEntity = new YxcscBaseChannelUserEntity ();
        oYxcscBaseChannelUserEntity.setId(id) ;
        oYxcscBaseChannelUserEntity.setChannelCode(channelCode) ;
        oYxcscBaseChannelUserEntity.setUserId(userId) ;
        return oYxcscBaseChannelUserEntity;
    }
}

